package com.atguigu.springcloud.AOP.service;

import com.atguigu.springcloud.AOP.Loggable;
import org.springframework.stereotype.Service;

/**
 * @author XiongJianLin
 * @date Created in 2025/2/28 10:27
 */
@Service
public class AnnotationUserService {

    @Loggable
    public void addUser(String username) {
        System.out.println("添加用户: " + username);
    }

    @Loggable
    public void deleteUser(String username) {
        System.out.println("删除用户: " + username);
    }


    public void updateUser(String username) {
        System.out.println("更新用户: " + username);
    }
}
